<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">
    <dev-heart-form ref="heartForm"  :disabled="disableSubmit"></dev-heart-form>
  </j-modal>
</template>

<script>

  import DevHeartForm from "./DevHeartForm";
  export default {
    name: 'DevHeartModal',
    components: {
      DevHeartForm
    },
    data () {
      return {
        title:'',
        width:800,
        visible: false,
        disableSubmit: false
      }
    },
    methods: {
     show(){
       this.visible = true;
     },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleOk () {
        this.close()
      },

      handleCancel () {
        this.close()
      }
    }
  }
</script>